import service from '@/utils/request'

// @Tags FirstOrderProcessingColor
// @Summary 创建首办单-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingColor true "创建首办单-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /firstOrderProcessingColor/createFirstOrderProcessingColor [post]
export const createFirstOrderProcessingColor = (data) => {
  return service({
    url: '/firstOrderProcessingColor/createFirstOrderProcessingColor',
    method: 'post',
    data
  })
}

// @Tags FirstOrderProcessingColor
// @Summary 删除首办单-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingColor true "删除首办单-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingColor/deleteFirstOrderProcessingColor [delete]
export const deleteFirstOrderProcessingColor = (params) => {
  return service({
    url: '/firstOrderProcessingColor/deleteFirstOrderProcessingColor',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingColor
// @Summary 批量删除首办单-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除首办单-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /firstOrderProcessingColor/deleteFirstOrderProcessingColor [delete]
export const deleteFirstOrderProcessingColorByIds = (params) => {
  return service({
    url: '/firstOrderProcessingColor/deleteFirstOrderProcessingColorByIds',
    method: 'delete',
    params
  })
}

// @Tags FirstOrderProcessingColor
// @Summary 更新首办单-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.FirstOrderProcessingColor true "更新首办单-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /firstOrderProcessingColor/updateFirstOrderProcessingColor [put]
export const updateFirstOrderProcessingColor = (data) => {
  return service({
    url: '/firstOrderProcessingColor/updateFirstOrderProcessingColor',
    method: 'put',
    data
  })
}

// @Tags FirstOrderProcessingColor
// @Summary 用id查询首办单-颜色
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.FirstOrderProcessingColor true "用id查询首办单-颜色"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /firstOrderProcessingColor/findFirstOrderProcessingColor [get]
export const findFirstOrderProcessingColor = (params) => {
  return service({
    url: '/firstOrderProcessingColor/findFirstOrderProcessingColor',
    method: 'get',
    params
  })
}

// @Tags FirstOrderProcessingColor
// @Summary 分页获取首办单-颜色列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取首办单-颜色列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /firstOrderProcessingColor/getFirstOrderProcessingColorList [get]
export const getFirstOrderProcessingColorList = (params) => {
  return service({
    url: '/firstOrderProcessingColor/getFirstOrderProcessingColorList',
    method: 'get',
    params
  })
}
